#!/usr/bin/env python3
# -*- coding: utf-8 -*-

import sys
from cv2 import *
from PyQt5 import QtCore, QtGui, QtWidgets
from PyQt5.QtWidgets import QApplication, QWidget
from Ui_first import Ui_MainWindow
from PyQt5.QtGui import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
class mywindow(QtWidgets.QMainWindow,Ui_MainWindow):
  def __init__(self):
    super(mywindow,self).__init__()
    self.setupUi(self)
 
if __name__=='__main__':
  app = QtWidgets.QApplication(sys.argv)#每个PyQt5应用程序必须创建一个应用程序对象。 sys.argv参数是来自命令行的参数列表。
  window = mywindow()
  window.show()
  sys.exit(app.exec_())
